package com.nf.health.app.inquiry.bean;

import com.google.gson.Gson;
import com.nf.health.app.core.MyGsonBuilder;

import java.util.List;

/**
 * Created by hepann on 2016/9/23.
 * The only genius that is worth anything is the genius for hard work
 *
 * @author hepann
 * @Description 问诊的返回bean类,基本信息
 * @email he_pann@163.com
 */
public class InquiryBean {

    /**
     * createtime : 1474597217000
     * content : "{"images":["http://test.mbank.nf1000.com/simg//f1dbcb6adc0f8c3b7ee3da2b4f672dbc","http://test.mbank.nf1000.com/simg//67e332896f4b09fece0e8019a0d641ec"],"message":"很黄很暴力更好"}"
     * userdesc : 何攀,男,107岁
     * isread : 0
     * replydoctornum : 0
     * userid : 2015120909370899790835
     * state : 0
     * inquiryid : 1717
     * userreplynum : 0
     */

    private long updatetime;
    /**
     * images : ["http://test.mbank.nf1000.com/simg//f1dbcb6adc0f8c3b7ee3da2b4f672dbc","http://test.mbank.nf1000.com/simg//67e332896f4b09fece0e8019a0d641ec"]
     * message : 很黄很暴力更好
     */

    //content作为字符串返回,不标准,自建bean类解析
    private ContentBean contentBean;

    private String content;
    private String userdesc;
    private String isread;
    private String replydoctornum;
    private String userid;
    private String state;
    private String inquiryid;
    private String userreplynum;


    public long getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(long updatetime) {
        this.updatetime = updatetime;
    }

    public ContentBean getContentBean() {
        Gson gson = new MyGsonBuilder().createGson();
        contentBean = gson.fromJson(content, ContentBean.class);
        return contentBean;
    }

    public void setContentBean(ContentBean contentBean) {
        this.contentBean = contentBean;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUserdesc() {
        return userdesc;
    }

    public void setUserdesc(String userdesc) {
        this.userdesc = userdesc;
    }

    public String getIsread() {
        return isread;
    }

    public void setIsread(String isread) {
        this.isread = isread;
    }

    public String getReplydoctornum() {
        return replydoctornum;
    }

    public void setReplydoctornum(String replydoctornum) {
        this.replydoctornum = replydoctornum;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getInquiryid() {
        return inquiryid;
    }

    public void setInquiryid(String inquiryid) {
        this.inquiryid = inquiryid;
    }

    public String getUserreplynum() {
        return userreplynum;
    }

    public void setUserreplynum(String userreplynum) {
        this.userreplynum = userreplynum;
    }

    public static class ContentBean {
        private String message;
        private List<String> images;

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public List<String> getImages() {
            return images;
        }

        public void setImages(List<String> images) {
            this.images = images;
        }
    }
}
